<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>dom学习</title>
    <script type="text/javascript">
        // 操作属性节点
        window.onload = function () {
            var nameNode = document.getElementById("name");
            alert(nameNode.value);
            nameNode.value = "你好";
            alert(nameNode.value);
        }

    </script>
</head>
<body>
    <input id = "name" value="aa">

</body>
</html>